using System.Configuration;

namespace SQLRunnerLib.Util
{
    public class PlaceHolderElement : ConfigurationElement
    {

        public PlaceHolderElement(string sPlaceHolder, string sReplacement)
        {
            PlaceHolder = sPlaceHolder;
            Replacement = sReplacement;
        }

        public PlaceHolderElement()
        {
        }
        public PlaceHolderElement(string sPlaceHolder)
        {
            PlaceHolder = sPlaceHolder;
        }

        [ConfigurationProperty("placeholder", IsRequired = true, IsKey = true, DefaultValue = "")]
        public string PlaceHolder
        {
            get { return (string)this["placeholder"]; }
            set { this["placeholder"] = value; }
        }
        [ConfigurationProperty("replacement", IsRequired = true, DefaultValue = "")]
        public string Replacement
        {
            get { return (string)this["replacement"]; }
            set { this["replacement"] = value; }
        }
    }
}